package com.obas.model.business;

import com.ease.model.LifecycleModel;
import com.ease.model.criteria.Criteria;
import com.ease.model.criteria.CriteriaType;
import com.obas.model.metadata.EntityType;

/**
 * 实体
 */
public abstract class Entity extends LifecycleModel {

	/**
	 *
	 */
	private static final long serialVersionUID = 6944627000775610910L;

	public static final String ATTRIBUTE_entityTypeId = "entityTypeId";

	public static final String ATTRIBUTE_entityTypeIds = "entityTypeIds";

	public static final String COLUMN_ENTITYTYPE_ID = "ENTITYTYPE_ID";

	/**  */
	protected long entityTypeId;

	/**  */
	protected EntityType entityType;

	/**
	 * @return Returns the entityTypeId.
	 */
	@Criteria(type = CriteriaType.Equal, columnName = COLUMN_ENTITYTYPE_ID)
	public long getEntityTypeId() {
		return entityTypeId;
	}

	/**
	 * @return Returns the entityType.
	 */
	@Criteria(type = CriteriaType.Ignore)
	public EntityType getEntityType() {
		return entityType;
	}

	/**
	 * @param entityType
	 *            The entityType to set.
	 */
	public void setEntityType(EntityType entityType) {
		this.entityType = entityType;

	}

	/**
	 * @param entityTypeId
	 *            The entityTypeId to set.
	 */
	public void setEntityTypeId(long entityTypeId) {
		this.entityTypeId = entityTypeId;
	}

}
